package com.zs.propertymanage.dataObj.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.time.LocalDateTime;

@Data
public class WorkOrder {

    public static final Integer COMPLETE_STATUS_UNRECEIVED = 1;
    public static final Integer COMPLETE_STATUS_PROCESSING = 2;
    public static final Integer COMPLETE_STATUS_COMPLETED = 3;
    public static final Integer CLOSE_STATUS_CLOSE = 1;
    public static final Integer CLOSE_STATUS_OPEN = 0;

    private String id;                  // 工单id
    private Integer houseId;             // 所属房屋id
    private String houseName;           // 所属房屋名称
    private String reportAddress;       // 上报地址

    private String submitterId;        // 提交人id
    private String submitterName;       // 提交人姓名
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime orderTime;    // 上报时间

    private String currentHandlerId;   // 当前处理人id
    private String currentHandlerName;  // 当前处理姓名
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime currentHandleTime;    // 当前处理时间

    private Integer categoryId;         // 工单分类id
    private String categoryName;        // 工单分类名称
    private Integer closeStatus;         // 关单状态   0-未关闭 1-已关闭
    private Integer completeStatus;     // 工单完成状态   1-未接收 2-处理中 3-已完成
    private String orderRemark;         // 工单备注

    private String process;             // 工单流程内容

}
